/**
 * 
 */
package org.codesketch.common.model;


/**
 * @author yvanovic
 *
 */
public class ValidateCommandMessage implements Message {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2135329739286993701L;

	private final Headers headers;
	private final String body;
	
	/**
	 * @param headers
	 * @param body
	 */
	public ValidateCommandMessage(Headers headers, String body) {
		this.headers = headers;
		this.body = body;
	}

	/* (non-Javadoc)
	 * @see org.codesketch.common.model.Message#getType()
	 */
	public Type getType() {
		return Type.Command;
	}

	/* (non-Javadoc)
	 * @see org.codesketch.common.model.Message#getHeaders()
	 */
	public Headers getHeaders() {
		
		return headers.clone();
	}

	/* (non-Javadoc)
	 * @see org.codesketch.common.model.Message#getBody()
	 */
	public String getBody() {
		return body;
	}

}
